﻿using System.Windows;
using Telerik.Windows.Controls;

namespace Samurai.WorkflowGraph.ViewModels
{
    public class ItemViewModelBase : ViewModelBase
    {
        private object _content;
        private Point _position;
        private Visibility _visibility = Visibility.Visible;

        public Visibility Visibility
        {
            get { return _visibility; }
            set
            {
                if (_visibility != value)
                {
                    _visibility = value;
                    OnPropertyChanged("Visibility");
                }
            }
        }

        public Point Position
        {
            get { return _position; }
            set
            {
                if (_position != value)
                {
                    _position = value;
                    OnPropertyChanged("Position");
                }
            }
        }

        /// <summary>
        /// Gets or sets the content or label of this connection.
        /// </summary>
        /// <value>
        /// The content.
        /// </value>
        public object Content
        {
            get { return _content; }
            set
            {
                if (_content != value)
                {
                    _content = value;
                    OnPropertyChanged("Content");
                }
            }
        }
    }
}